<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../bootstrap-table/bootstrap-table.css"/>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="../../toastr/toastr.min.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
</head>
<body>
<div class="col-*-12">

    <div id="toolbar">
        <div class="form-inline" style="margin-bottom: -38px">
            <div class="btn btn-outline-primary" data-toggle="modal" data-target="#addModal" id="addPartsBtn">添加记录</div>
            <div class="btn btn-outline-success" data-toggle="modal" data-target="#updateModal" id="updatePartsBtn" style="margin-left: 3px">修改记录</div>
            <div class="btn btn-outline-danger"  data-toggle="modal" data-target="#deleteModal" id="deletePartsBtn" style="margin-left: 3px">删除记录</div>
        </div>
        <div class="form-inline" style="margin-left: 300px">
            <input type="text" class="form-control mb-2 mr-sm-2" id="p_searchNum" placeholder="数量">
            <input type="text" class="form-control mb-2 mr-sm-2" id="p_searchDes" placeholder="配件">
            <div class="input-group mb-2 mr-sm-2">
                <input type="text" class="form-control" id="p_searchDate" placeholder="日期">
            </div>
            <button type="button" class="btn btn-outline-dark" id="searchPartsBtn" style="margin-bottom: 7px">检索</button>

    </div>
    <table id="partsTable" class="table table-hover"></table>

    <div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myDialogHeaderLable"></h4>
                </div>
                <div class="modal-body">
                    <div id="insertcarinfo" role="form">
                        <!--员工编号-->
                        <div class="form-group">
                            <input type="hidden" id="p_id">
                            <input type="text" class="form-control" id="p_num" placeholder="出库数量">
                        </div>
                        <div class="row">
                            <div class='col-sm-6'>
                                <div class="form-group">
                                    <label>出库日期：</label>
                                    <!--指定 date标记-->
                                    <div class='input-group date' >
                                        <input type='text' class="form-control" id="p_date" />
                                        <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                                </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">出库备注</span>
                            </div>
                            <textarea class="form-control" aria-label="With textarea" id="p_des"></textarea>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" id="addRecord"></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="deleteModal" tabindex="-1" role="dialog"
        aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close"
                            data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        删除</h4>
                </div>
                <div class="modal-body" id="deleteDialogMsg">

                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default"
                            data-dismiss="modal">关闭
                    </button>
                    <button type="button" class="btn btn-primary" id="deleteBtn">
                        删除
                    </button>
                </div>
            </div><!-- /.modal-content --></div>
    </div>
</div>
<script src="../../jquery/jquery-3.4.1.min.js"></script>
<script src="../../bootstrap/js/bootstrap.min.js"></script>
<script src="../../bootstrap-table/bootstrap-table.js"></script>
<script src="../../bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="../../js/moment-with-locales.js"></script>
<script src="../../bootstrap/js/bootstrap-datetimepicker.min.js"></script>
<script src="../../toastr/toastr.min.js"></script>
<script src="../../js/parts.js"></script>
</body>
</html>